home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / tool / extdrv / src / debug.c < prev    next >
Text File  |  1994-11-16  |  513b  |  37 lines

  1. auxputch(int ch)
  2. {
  3.     _auxput(ch);
  4. }
  5.  
  6. auxputs(char *s)
  7. {
  8.     while (*s != '\0')
  9.         auxputch(*s++);
  10. }
  11.  
  12. auxputhex(int n)
  13. {
  14.     n &= 0xf;
  15.     if (n >= 10)
  16.         _auxput('A' + (n - 10));
  17.     else
  18.         _auxput('0'+ n);
  19. }
  20.  
  21. auxputdigit(int n)
  22. {
  23.     _auxput('0'+ n);
  24. }
  25.  
  26. auxprinthex(long n)
  27. {
  28.     auxputhex((int)(n >> 28));
  29.     auxputhex((int)(n >> 24));
  30.     auxputhex((int)(n >> 20));
  31.     auxputhex((int)(n >> 16));
  32.     auxputhex((int)(n >> 12));
  33.     auxputhex((int)(n >> 8));
  34.     auxputhex((int)(n >> 4));
  35.     auxputhex((int)(n));
  36. }
  37.